package com.shuzhi.stationarysource.modules.job.domain;


import com.shuzhi.stationarysource.common.jpa.model.AbstractAuditModel;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.*;
import java.util.List;

/**
 * <p>项目名称: sdbd-parent </p>
 * <p>描述: 污染源关键信息实体类 </p>
 * <p>创建时间: 2018/9/28 14:07</p>
 * <p>公司信息: LeadingSoft</p>
 *
 * @author Changqing LI
 * @version v1.0
 */
@Entity
@Table(name = "wry_key_info")
public class WryKeyInfo extends AbstractAuditModel {

    // 排污单位名称 VARCHAR(100)
    @Column(length = 100)
    private String companyName;
    // 组织机构代码 VARCHAR(20)
    @Column(length = 20)
    private String organCd;
    // 统一社会信用代码 VARCHAR(30)
    @Column(length = 30)
    private String creditCd;
    // 污染源编码 VARCHAR(50)
    @Column(length = 50)
    private String pollutionCd;
    // 曾用名 VARCHAR(400)
    @Column(length = 50)
    private String companyNameUsed;
    // 污染源B类码 VARCHAR(50)
    @Column(length = 50,name = "pollution_cd_b")
    private String pollutionCdB;
    // 工商注册号 VARCHAR(50)
    @Column(length = 15)
    private String regNo;
    // 数据来源 INT
    private Integer dataSource;
    // 数据来源方式 INT
    private Integer dataSourceWay;

    //企业信息
    @OneToOne(mappedBy  ="wryKeyInfo")
    private WryBaseInfo wryBaseInfo;

    //企业环境信息
    @OneToOne(mappedBy  ="wryKeyInfo")
    private WryEnvBaseInfo wryEnvBaseInfo;
    //企业关联
    @Transient
    private List<WryPollEntRlt> wryPollEntRlts;

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getOrganCd() {
        return organCd;
    }

    public void setOrganCd(String organCd) {
        this.organCd = organCd;
    }

    public String getCreditCd() {
        return creditCd;
    }

    public void setCreditCd(String creditCd) {
        this.creditCd = creditCd;
    }

    public String getPollutionCd() {
        return pollutionCd;
    }

    public void setPollutionCd(String pollutionCd) {
        this.pollutionCd = pollutionCd;
    }

    public String getCompanyNameUsed() {
        return companyNameUsed;
    }

    public void setCompanyNameUsed(String companyNameUsed) {
        this.companyNameUsed = companyNameUsed;
    }

    public String getPollutionCdB() {
        return pollutionCdB;
    }

    public void setPollutionCdB(String pollutionCdB) {
        this.pollutionCdB = pollutionCdB;
    }

    public String getRegNo() {
        return regNo;
    }

    public void setRegNo(String regNo) {
        this.regNo = regNo;
    }

    public Integer getDataSource() {
        return dataSource;
    }

    public void setDataSource(Integer dataSource) {
        this.dataSource = dataSource;
    }

    public Integer getDataSourceWay() {
        return dataSourceWay;
    }

    public void setDataSourceWay(Integer dataSourceWay) {
        this.dataSourceWay = dataSourceWay;
    }

    public WryBaseInfo getWryBaseInfo() {
        return wryBaseInfo;
    }

    public void setWryBaseInfo(WryBaseInfo wryBaseInfo) {
        this.wryBaseInfo = wryBaseInfo;
    }

    public WryEnvBaseInfo getWryEnvBaseInfo() {
        return wryEnvBaseInfo;
    }

    public void setWryEnvBaseInfo(WryEnvBaseInfo wryEnvBaseInfo) {
        this.wryEnvBaseInfo = wryEnvBaseInfo;
    }

    public List<WryPollEntRlt> getWryPollEntRlts() {
        return wryPollEntRlts;
    }

    public void setWryPollEntRlts(List<WryPollEntRlt> wryPollEntRlts) {
        this.wryPollEntRlts = wryPollEntRlts;
    }
}
